package org.ccf.chamberlain.model;

import java.text.DecimalFormat;

public class Statistics
{
	DecimalFormat df = new DecimalFormat("0.00");
	Double inMoney;
	
	Double outMoney;
	
	Double balance;
	
	int LogsCount;

	public Double getInMoney()
    {
    	return inMoney;
    }

	public void setInMoney(Double inMoney)
    {
    	this.inMoney = Double.parseDouble(df.format(inMoney));
    }

	public Double getOutMoney()
    {
    	return outMoney;
    }

	public void setOutMoney(Double outMoney)
    {
    	this.outMoney = Double.parseDouble(df.format(outMoney));
    }

	public int getLogsCount()
    {
    	return LogsCount;
    }

	public void setLogsCount(int logsCount)
    {
    	LogsCount = logsCount;
    }

	public Double getBalance()
    {
    	return inMoney - outMoney;
    }

	public void setBalance(Double balance)
    {
    	this.balance = balance;
    }

}
